package org.csu.jpetstore.service;

import org.csu.jpetstore.domain.Account;
import org.csu.jpetstore.domain.Admin;
import org.csu.jpetstore.persistence.AccountMapper;
import org.csu.jpetstore.persistence.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;

    public void insert(Admin admin){
        adminMapper.insert(admin);
    }
    public Admin getByUsername(String username){
        return adminMapper.getByUsername(username);
    }
}
